package com.fish.admin.module.system.domain.dto;

import com.fish.common.core.validation.InsertDefaultGroup;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class SysUserDTO {

    /**
     * 账号
     */
    @NotBlank(message = "账号不能为空")
    private String account;
    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空", groups = InsertDefaultGroup.class)
    private String secret;

    /**
     * 角色ID
     */
    @NotNull(message = "角色ID不能为空")
    private Long roleId;

    /**
     * 备注
     */
    private String remark;
}
